﻿using System;
using System.IO;
using System.Runtime.InteropServices;
using TopVisionLog;

namespace TopVisionVideoStream
{
    class UIManager
    {
        public static string remote = "remote";
        public static string local = "local";

        public static void SetScreen(int remoteHwnd, int localHwnd)
        {
#if DEBUG
            Console.WriteLine("设置视频画面:");
#endif

            var core = Configuration.Core;
            var remoteRet = core.bSetRemoteVideoHWnd(remote, remoteHwnd) != 0;
            var localRet = core.bSetLocalVideoHWnd(local, localHwnd) != 0;
#if DEBUG

            Console.WriteLine("对方视频画面:" + (remoteRet ? "成功" : "失败"));

            Console.WriteLine("对方视频画面:" + (localRet ? "成功" : "失败"));
#endif
        }
    }
}
